﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace SWRPre
{
    public class FileUtil
    {
        public static void WriteFile(string path, string[] contents)
        {
            StreamWriter sw = null;
            try
            {
                for (int i = 0; i < contents.Length; i++)
                {
                    sw.WriteLine(contents[i]);
                }
            }
            catch { }

            if (sw != null)
            {
                try
                {
                    sw.Close();
                }
                catch { }
            }
        }
    }
}
